<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Bayesian Network: bn::network&lt; RepresentMethod &gt; Class Template Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Bayesian Network
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>bn</b></li><li class="navelem"><a class="el" href="classbn_1_1network.html">network</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="classbn_1_1network-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">bn::network&lt; RepresentMethod &gt; Class Template Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Provide a functions for each graph representing class.  
 <a href="classbn_1_1network.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="network_8hpp_source.html">network.hpp</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr class="memitem:a9ea236bf892ba6fb389995a780086444"><td class="memItemLeft" align="right" valign="top"><a id="a9ea236bf892ba6fb389995a780086444"></a>
using&#160;</td><td class="memItemRight" valign="bottom"><b>this_type</b> = <a class="el" href="classbn_1_1network.html">network</a>&lt; RepresentMethod &gt;</td></tr>
<tr class="separator:a9ea236bf892ba6fb389995a780086444"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aade12ce73f49da5cd6fdbdf1f1ad3262"><td class="memItemLeft" align="right" valign="top"><a id="aade12ce73f49da5cd6fdbdf1f1ad3262"></a>
using&#160;</td><td class="memItemRight" valign="bottom"><b>random_variable_ptr</b> = component::random_variable_ptr</td></tr>
<tr class="separator:aade12ce73f49da5cd6fdbdf1f1ad3262"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5a3ffd267357d725f1d3715771f604c4"><td class="memItemLeft" align="right" valign="top"><a id="a5a3ffd267357d725f1d3715771f604c4"></a>
using&#160;</td><td class="memItemRight" valign="bottom"><b>node_ptr</b> = component::node_ptr</td></tr>
<tr class="separator:a5a3ffd267357d725f1d3715771f604c4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4f43bad9ccca5006849ebbe41cfb2840"><td class="memItemLeft" align="right" valign="top"><a id="a4f43bad9ccca5006849ebbe41cfb2840"></a>
using&#160;</td><td class="memItemRight" valign="bottom"><b>arc_ptr</b> = component::arc_ptr</td></tr>
<tr class="separator:a4f43bad9ccca5006849ebbe41cfb2840"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:abf7045b25b5b039a4febb1d26a5698ae"><td class="memItemLeft" align="right" valign="top"><a id="abf7045b25b5b039a4febb1d26a5698ae"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbn_1_1network.html#abf7045b25b5b039a4febb1d26a5698ae">network</a> ()</td></tr>
<tr class="memdesc:abf7045b25b5b039a4febb1d26a5698ae"><td class="mdescLeft">&#160;</td><td class="mdescRight">(Default ctor) Initialize nodes and arcs as empty. <br /></td></tr>
<tr class="separator:abf7045b25b5b039a4febb1d26a5698ae"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0ff4f416bc8306ae03a825a271749eb5"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbn_1_1network.html#a0ff4f416bc8306ae03a825a271749eb5">network</a> (<a class="el" href="classbn_1_1network.html">this_type</a> &amp;&amp;)=default</td></tr>
<tr class="memdesc:a0ff4f416bc8306ae03a825a271749eb5"><td class="mdescLeft">&#160;</td><td class="mdescRight">(Move ctor) Initialize nodes and arcs by moving a parameter.  <a href="#a0ff4f416bc8306ae03a825a271749eb5">More...</a><br /></td></tr>
<tr class="separator:a0ff4f416bc8306ae03a825a271749eb5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3a100a94f5abacefdf15cc5ac32cddad"><td class="memItemLeft" align="right" valign="top"><a id="a3a100a94f5abacefdf15cc5ac32cddad"></a>
virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbn_1_1network.html#a3a100a94f5abacefdf15cc5ac32cddad">~network</a> ()=default</td></tr>
<tr class="memdesc:a3a100a94f5abacefdf15cc5ac32cddad"><td class="mdescLeft">&#160;</td><td class="mdescRight">(Default dtor) <br /></td></tr>
<tr class="separator:a3a100a94f5abacefdf15cc5ac32cddad"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af8e0c93f5dfadb0f689c4e0d978eefaf"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classbn_1_1network.html">this_type</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbn_1_1network.html#af8e0c93f5dfadb0f689c4e0d978eefaf">operator=</a> (<a class="el" href="classbn_1_1network.html">this_type</a> &amp;&amp;)=default</td></tr>
<tr class="memdesc:af8e0c93f5dfadb0f689c4e0d978eefaf"><td class="mdescLeft">&#160;</td><td class="mdescRight">(Move operator=) Initialize nodes and arcs by copying a parameter.  <a href="#af8e0c93f5dfadb0f689c4e0d978eefaf">More...</a><br /></td></tr>
<tr class="separator:af8e0c93f5dfadb0f689c4e0d978eefaf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae0fed0b2e627a05dc68b33758aa1efec"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classbn_1_1network.html">this_type</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbn_1_1network.html#ae0fed0b2e627a05dc68b33758aa1efec">clone</a> () const</td></tr>
<tr class="memdesc:ae0fed0b2e627a05dc68b33758aa1efec"><td class="mdescLeft">&#160;</td><td class="mdescRight">Clone this instance.  <a href="#ae0fed0b2e627a05dc68b33758aa1efec">More...</a><br /></td></tr>
<tr class="separator:ae0fed0b2e627a05dc68b33758aa1efec"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0d582c74fa4a517b73ebce372bc779aa"><td class="memItemLeft" align="right" valign="top">node_ptr&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbn_1_1network.html#a0d582c74fa4a517b73ebce372bc779aa">add_node</a> ()</td></tr>
<tr class="memdesc:a0d582c74fa4a517b73ebce372bc779aa"><td class="mdescLeft">&#160;</td><td class="mdescRight">Register a node into network.  <a href="#a0d582c74fa4a517b73ebce372bc779aa">More...</a><br /></td></tr>
<tr class="separator:a0d582c74fa4a517b73ebce372bc779aa"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6cadce82d9ce19904b6db978e3bb7ad7"><td class="memItemLeft" align="right" valign="top">node_ptr&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbn_1_1network.html#a6cadce82d9ce19904b6db978e3bb7ad7">add_clone_node</a> (node_ptr const &amp;node)</td></tr>
<tr class="memdesc:a6cadce82d9ce19904b6db978e3bb7ad7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Register a cloned node of the argument into network.  <a href="#a6cadce82d9ce19904b6db978e3bb7ad7">More...</a><br /></td></tr>
<tr class="separator:a6cadce82d9ce19904b6db978e3bb7ad7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2aeea07c914e9592f42ba813b44cca8c"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbn_1_1network.html#a2aeea07c914e9592f42ba813b44cca8c">remove_node</a> (node_ptr const &amp;node)</td></tr>
<tr class="memdesc:a2aeea07c914e9592f42ba813b44cca8c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Remove the argument node from network.  <a href="#a2aeea07c914e9592f42ba813b44cca8c">More...</a><br /></td></tr>
<tr class="separator:a2aeea07c914e9592f42ba813b44cca8c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a81ae2590eed588d4d6faa6febe250081"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbn_1_1network.html#a81ae2590eed588d4d6faa6febe250081">remove_all_node</a> ()</td></tr>
<tr class="memdesc:a81ae2590eed588d4d6faa6febe250081"><td class="mdescLeft">&#160;</td><td class="mdescRight">Remove all nodes from network.  <a href="#a81ae2590eed588d4d6faa6febe250081">More...</a><br /></td></tr>
<tr class="separator:a81ae2590eed588d4d6faa6febe250081"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae7ea456102913924b5b52921c7e5c8c9"><td class="memItemLeft" align="right" valign="top">arc_ptr&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbn_1_1network.html#ae7ea456102913924b5b52921c7e5c8c9">add_arc</a> (node_ptr const &amp;from, node_ptr const &amp;to)</td></tr>
<tr class="memdesc:ae7ea456102913924b5b52921c7e5c8c9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Register an arc into network.  <a href="#ae7ea456102913924b5b52921c7e5c8c9">More...</a><br /></td></tr>
<tr class="separator:ae7ea456102913924b5b52921c7e5c8c9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4170f84c9bff50bcb7e1882f42665741"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbn_1_1network.html#a4170f84c9bff50bcb7e1882f42665741">remove_arc</a> (arc_ptr const &amp;arc)</td></tr>
<tr class="memdesc:a4170f84c9bff50bcb7e1882f42665741"><td class="mdescLeft">&#160;</td><td class="mdescRight">Remove the argument arc from network.  <a href="#a4170f84c9bff50bcb7e1882f42665741">More...</a><br /></td></tr>
<tr class="separator:a4170f84c9bff50bcb7e1882f42665741"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a014eee9086d6a3b3e514f6eebb3d2dc3"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbn_1_1network.html#a014eee9086d6a3b3e514f6eebb3d2dc3">remove_arc</a> (node_ptr const &amp;from, node_ptr const &amp;to)</td></tr>
<tr class="memdesc:a014eee9086d6a3b3e514f6eebb3d2dc3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Remove the argument arc from network.  <a href="#a014eee9086d6a3b3e514f6eebb3d2dc3">More...</a><br /></td></tr>
<tr class="separator:a014eee9086d6a3b3e514f6eebb3d2dc3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a06fa4a9a05f553ccaa7fff4cd8535c5b"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbn_1_1network.html#a06fa4a9a05f553ccaa7fff4cd8535c5b">remove_all_arc</a> ()</td></tr>
<tr class="memdesc:a06fa4a9a05f553ccaa7fff4cd8535c5b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Remove all arcs from network.  <a href="#a06fa4a9a05f553ccaa7fff4cd8535c5b">More...</a><br /></td></tr>
<tr class="separator:a06fa4a9a05f553ccaa7fff4cd8535c5b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae22fba0693624b0fb198556de75374c3"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbn_1_1network.html#ae22fba0693624b0fb198556de75374c3">change_direction</a> (arc_ptr const &amp;arc)</td></tr>
<tr class="memdesc:ae22fba0693624b0fb198556de75374c3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Change a direction of argument arc.  <a href="#ae22fba0693624b0fb198556de75374c3">More...</a><br /></td></tr>
<tr class="separator:ae22fba0693624b0fb198556de75374c3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4dc7817763b4b970779af69fdcb49a95"><td class="memItemLeft" align="right" valign="top">arc_ptr&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbn_1_1network.html#a4dc7817763b4b970779af69fdcb49a95">is_adjacent</a> (node_ptr const &amp;from, node_ptr const &amp;to) const noexcept</td></tr>
<tr class="memdesc:a4dc7817763b4b970779af69fdcb49a95"><td class="mdescLeft">&#160;</td><td class="mdescRight">Check whether two nodes are adjacent by a arc in the network.  <a href="#a4dc7817763b4b970779af69fdcb49a95">More...</a><br /></td></tr>
<tr class="separator:a4dc7817763b4b970779af69fdcb49a95"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af34a74404c54d434a464c5ce567e763c"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbn_1_1network.html#af34a74404c54d434a464c5ce567e763c">is_connect</a> (node_ptr const &amp;node, arc_ptr const &amp;arc) const noexcept</td></tr>
<tr class="memdesc:af34a74404c54d434a464c5ce567e763c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Check whether a node and an arc are connected in the network.  <a href="#af34a74404c54d434a464c5ce567e763c">More...</a><br /></td></tr>
<tr class="separator:af34a74404c54d434a464c5ce567e763c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9ac727efbdd02af8baa146820a7ea9fa"><td class="memItemLeft" align="right" valign="top">node_ptr&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbn_1_1network.html#a9ac727efbdd02af8baa146820a7ea9fa">source</a> (arc_ptr const &amp;arc) const</td></tr>
<tr class="memdesc:a9ac727efbdd02af8baa146820a7ea9fa"><td class="mdescLeft">&#160;</td><td class="mdescRight">Obtain a source (parent) node of an arc.  <a href="#a9ac727efbdd02af8baa146820a7ea9fa">More...</a><br /></td></tr>
<tr class="separator:a9ac727efbdd02af8baa146820a7ea9fa"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3d49c65254a82ce519f71bef043ffd8e"><td class="memItemLeft" align="right" valign="top">node_ptr&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbn_1_1network.html#a3d49c65254a82ce519f71bef043ffd8e">target</a> (arc_ptr const &amp;arc) const</td></tr>
<tr class="memdesc:a3d49c65254a82ce519f71bef043ffd8e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Obtain a target (child) node of an arc.  <a href="#a3d49c65254a82ce519f71bef043ffd8e">More...</a><br /></td></tr>
<tr class="separator:a3d49c65254a82ce519f71bef043ffd8e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5b641504686e299eb9f988e51b77e827"><td class="memItemLeft" align="right" valign="top">std::vector&lt; node_ptr &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbn_1_1network.html#a5b641504686e299eb9f988e51b77e827">parent_nodes</a> (node_ptr const &amp;node) const</td></tr>
<tr class="memdesc:a5b641504686e299eb9f988e51b77e827"><td class="mdescLeft">&#160;</td><td class="mdescRight">Obtain a list of all nodes which are parent of the child (argument).  <a href="#a5b641504686e299eb9f988e51b77e827">More...</a><br /></td></tr>
<tr class="separator:a5b641504686e299eb9f988e51b77e827"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac1d37fde77b3deb984b552ef7cec7f52"><td class="memItemLeft" align="right" valign="top">std::vector&lt; node_ptr &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbn_1_1network.html#ac1d37fde77b3deb984b552ef7cec7f52">child_nodes</a> (node_ptr const &amp;node) const</td></tr>
<tr class="memdesc:ac1d37fde77b3deb984b552ef7cec7f52"><td class="mdescLeft">&#160;</td><td class="mdescRight">Obtain a list of all nodes which are child of the parent (argument).  <a href="#ac1d37fde77b3deb984b552ef7cec7f52">More...</a><br /></td></tr>
<tr class="separator:ac1d37fde77b3deb984b552ef7cec7f52"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac1cbce2d87b6a6aaa76432e8b63bf15d"><td class="memItemLeft" align="right" valign="top"><a id="ac1cbce2d87b6a6aaa76432e8b63bf15d"></a>
std::vector&lt; node_ptr &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbn_1_1network.html#ac1cbce2d87b6a6aaa76432e8b63bf15d">all_node</a> () const</td></tr>
<tr class="memdesc:ac1cbce2d87b6a6aaa76432e8b63bf15d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Obtain all node pointers. <br /></td></tr>
<tr class="separator:ac1cbce2d87b6a6aaa76432e8b63bf15d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1c1237e61bc8ea0143e6686fc8fca4a9"><td class="memItemLeft" align="right" valign="top"><a id="a1c1237e61bc8ea0143e6686fc8fca4a9"></a>
std::vector&lt; arc_ptr &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classbn_1_1network.html#a1c1237e61bc8ea0143e6686fc8fca4a9">all_arc</a> () const</td></tr>
<tr class="memdesc:a1c1237e61bc8ea0143e6686fc8fca4a9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Obtain all arc pointers. <br /></td></tr>
<tr class="separator:a1c1237e61bc8ea0143e6686fc8fca4a9"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><h3>template&lt;class RepresentMethod&gt;<br />
class bn::network&lt; RepresentMethod &gt;</h3>

<p>Provide a functions for each graph representing class. </p>
<dl class="tparams"><dt>Template Parameters</dt><dd>
  <table class="tparams">
    <tr><td class="paramname">RepresentMethod</td><td><a class="el" href="classbn_1_1adjacency__list.html" title="Implement class of adjacency list for bn::network. ">bn::adjacency_list</a> or <a class="el" href="classbn_1_1adjacency__matrix.html" title="Implement class of adjacency matrix for bn::network. ">adjacency_matrix</a>. </td></tr>
  </table>
  </dd>
</dl>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="a0ff4f416bc8306ae03a825a271749eb5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0ff4f416bc8306ae03a825a271749eb5">&#9670;&nbsp;</a></span>network()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class RepresentMethod&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classbn_1_1network.html">bn::network</a>&lt; RepresentMethod &gt;::<a class="el" href="classbn_1_1network.html">network</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classbn_1_1network.html">this_type</a> &amp;&amp;&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">default</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>(Move ctor) Initialize nodes and arcs by moving a parameter. </p>
<p>The parameter will be destroyed. </p>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="ae7ea456102913924b5b52921c7e5c8c9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae7ea456102913924b5b52921c7e5c8c9">&#9670;&nbsp;</a></span>add_arc()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class RepresentMethod&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">arc_ptr <a class="el" href="classbn_1_1network.html">bn::network</a>&lt; RepresentMethod &gt;::add_arc </td>
          <td>(</td>
          <td class="paramtype">node_ptr const &amp;&#160;</td>
          <td class="paramname"><em>from</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">node_ptr const &amp;&#160;</td>
          <td class="paramname"><em>to</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Register an arc into network. </p>
<p>Strong guarantee: if an exception is thrown, there are no changes in the network.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">from</td><td>a node which is a start point of the arc. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">to</td><td>a node which is an end point of the arc. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The arc which is identical with the parameter. </dd></dl>

</div>
</div>
<a id="a6cadce82d9ce19904b6db978e3bb7ad7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6cadce82d9ce19904b6db978e3bb7ad7">&#9670;&nbsp;</a></span>add_clone_node()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class RepresentMethod&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">node_ptr <a class="el" href="classbn_1_1network.html">bn::network</a>&lt; RepresentMethod &gt;::add_clone_node </td>
          <td>(</td>
          <td class="paramtype">node_ptr const &amp;&#160;</td>
          <td class="paramname"><em>node</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Register a cloned node of the argument into network. </p>
<p>An argument node and a return node are difference; however, they have the same instance of bn::random_variable. Strong guarantee: if an exception is thrown, there are no changes in the network.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">node</td><td>a node to clone. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The node which is identical with the parameter. </dd></dl>

</div>
</div>
<a id="a0d582c74fa4a517b73ebce372bc779aa"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0d582c74fa4a517b73ebce372bc779aa">&#9670;&nbsp;</a></span>add_node()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class RepresentMethod&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">node_ptr <a class="el" href="classbn_1_1network.html">bn::network</a>&lt; RepresentMethod &gt;::add_node </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Register a node into network. </p>
<p>Strong guarantee: if an exception is thrown, there are no changes in the network.</p>
<dl class="section return"><dt>Returns</dt><dd>The node which is identical with the parameter. </dd></dl>

</div>
</div>
<a id="ae22fba0693624b0fb198556de75374c3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae22fba0693624b0fb198556de75374c3">&#9670;&nbsp;</a></span>change_direction()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class RepresentMethod&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool <a class="el" href="classbn_1_1network.html">bn::network</a>&lt; RepresentMethod &gt;::change_direction </td>
          <td>(</td>
          <td class="paramtype">arc_ptr const &amp;&#160;</td>
          <td class="paramname"><em>arc</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Change a direction of argument arc. </p>
<p>Basic guarantee: if an exception is thrown, this instance is in a valid state.</p>
<dl class="section return"><dt>Returns</dt><dd>true if the arc was successfully changed into an inverse one; otherwise false. </dd></dl>

</div>
</div>
<a id="ac1d37fde77b3deb984b552ef7cec7f52"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac1d37fde77b3deb984b552ef7cec7f52">&#9670;&nbsp;</a></span>child_nodes()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class RepresentMethod&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">std::vector&lt;node_ptr&gt; <a class="el" href="classbn_1_1network.html">bn::network</a>&lt; RepresentMethod &gt;::child_nodes </td>
          <td>(</td>
          <td class="paramtype">node_ptr const &amp;&#160;</td>
          <td class="paramname"><em>node</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Obtain a list of all nodes which are child of the parent (argument). </p>
<p>Strong guarantee: if an exception is thrown, there are no changes in the network.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">parent</td><td>a node which is an start point. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>a list of all nodes. </dd></dl>

</div>
</div>
<a id="ae0fed0b2e627a05dc68b33758aa1efec"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae0fed0b2e627a05dc68b33758aa1efec">&#9670;&nbsp;</a></span>clone()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class RepresentMethod&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classbn_1_1network.html">this_type</a> <a class="el" href="classbn_1_1network.html">bn::network</a>&lt; RepresentMethod &gt;::clone </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Clone this instance. </p>
<p>Cloned instance have the common pointers of nodes and arcs to this instance.</p>
<dl class="section return"><dt>Returns</dt><dd>New cloned instance. </dd></dl>

</div>
</div>
<a id="a4dc7817763b4b970779af69fdcb49a95"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4dc7817763b4b970779af69fdcb49a95">&#9670;&nbsp;</a></span>is_adjacent()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class RepresentMethod&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">arc_ptr <a class="el" href="classbn_1_1network.html">bn::network</a>&lt; RepresentMethod &gt;::is_adjacent </td>
          <td>(</td>
          <td class="paramtype">node_ptr const &amp;&#160;</td>
          <td class="paramname"><em>from</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">node_ptr const &amp;&#160;</td>
          <td class="paramname"><em>to</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">noexcept</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Check whether two nodes are adjacent by a arc in the network. </p>
<p>No-throw guarantee: never throws exceptions.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">from</td><td>a node which is a start point. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">to</td><td>a node which is an end point. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>true if from and to are adjacent; otherwise false. </dd></dl>

</div>
</div>
<a id="af34a74404c54d434a464c5ce567e763c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af34a74404c54d434a464c5ce567e763c">&#9670;&nbsp;</a></span>is_connect()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class RepresentMethod&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="classbn_1_1network.html">bn::network</a>&lt; RepresentMethod &gt;::is_connect </td>
          <td>(</td>
          <td class="paramtype">node_ptr const &amp;&#160;</td>
          <td class="paramname"><em>node</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">arc_ptr const &amp;&#160;</td>
          <td class="paramname"><em>arc</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">noexcept</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Check whether a node and an arc are connected in the network. </p>
<p>No-throw guarantee: never throws exceptions.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">node</td><td>a node which is a start or end point. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">arc</td><td>an arc. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>&gt; 0 : the node is a start (parent) node of the arc; &lt; 0 : the node is an end (child) node of the arc; = 0 : the node does not connect to the arc. </dd></dl>

</div>
</div>
<a id="af8e0c93f5dfadb0f689c4e0d978eefaf"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af8e0c93f5dfadb0f689c4e0d978eefaf">&#9670;&nbsp;</a></span>operator=()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class RepresentMethod&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classbn_1_1network.html">this_type</a>&amp; <a class="el" href="classbn_1_1network.html">bn::network</a>&lt; RepresentMethod &gt;::operator= </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classbn_1_1network.html">this_type</a> &amp;&amp;&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">default</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>(Move operator=) Initialize nodes and arcs by copying a parameter. </p>
<p>The parameter will be destroyed. </p>

</div>
</div>
<a id="a5b641504686e299eb9f988e51b77e827"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5b641504686e299eb9f988e51b77e827">&#9670;&nbsp;</a></span>parent_nodes()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class RepresentMethod&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">std::vector&lt;node_ptr&gt; <a class="el" href="classbn_1_1network.html">bn::network</a>&lt; RepresentMethod &gt;::parent_nodes </td>
          <td>(</td>
          <td class="paramtype">node_ptr const &amp;&#160;</td>
          <td class="paramname"><em>node</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Obtain a list of all nodes which are parent of the child (argument). </p>
<p>Strong guarantee: if an exception is thrown, there are no changes in the network.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">child</td><td>a node which is an end point. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>a list of all nodes. </dd></dl>

</div>
</div>
<a id="a06fa4a9a05f553ccaa7fff4cd8535c5b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a06fa4a9a05f553ccaa7fff4cd8535c5b">&#9670;&nbsp;</a></span>remove_all_arc()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class RepresentMethod&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classbn_1_1network.html">bn::network</a>&lt; RepresentMethod &gt;::remove_all_arc </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Remove all arcs from network. </p>
<p>Basic guarantee: if an exception is thrown, this instance is in a valid state. </p>

</div>
</div>
<a id="a81ae2590eed588d4d6faa6febe250081"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a81ae2590eed588d4d6faa6febe250081">&#9670;&nbsp;</a></span>remove_all_node()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class RepresentMethod&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classbn_1_1network.html">bn::network</a>&lt; RepresentMethod &gt;::remove_all_node </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Remove all nodes from network. </p>
<p>Basic guarantee: if an exception is thrown, this instance is in a valid state. </p>

</div>
</div>
<a id="a4170f84c9bff50bcb7e1882f42665741"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4170f84c9bff50bcb7e1882f42665741">&#9670;&nbsp;</a></span>remove_arc() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class RepresentMethod&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool <a class="el" href="classbn_1_1network.html">bn::network</a>&lt; RepresentMethod &gt;::remove_arc </td>
          <td>(</td>
          <td class="paramtype">arc_ptr const &amp;&#160;</td>
          <td class="paramname"><em>arc</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Remove the argument arc from network. </p>
<p>Strong guarantee: if an exception is thrown, there are no changes in the network.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">arc</td><td>Target arc. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>true if the node was successfully removed; otherwise false. </dd></dl>

</div>
</div>
<a id="a014eee9086d6a3b3e514f6eebb3d2dc3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a014eee9086d6a3b3e514f6eebb3d2dc3">&#9670;&nbsp;</a></span>remove_arc() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class RepresentMethod&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool <a class="el" href="classbn_1_1network.html">bn::network</a>&lt; RepresentMethod &gt;::remove_arc </td>
          <td>(</td>
          <td class="paramtype">node_ptr const &amp;&#160;</td>
          <td class="paramname"><em>from</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">node_ptr const &amp;&#160;</td>
          <td class="paramname"><em>to</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Remove the argument arc from network. </p>
<p>Strong guarantee: if an exception is thrown, there are no changes in the network.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">from</td><td>a node which is a start point of the arc wanted to remove. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">to</td><td>a node which is an end point of the arc wanted to remove. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>true if the node was successfully removed; otherwise false. </dd></dl>

</div>
</div>
<a id="a2aeea07c914e9592f42ba813b44cca8c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2aeea07c914e9592f42ba813b44cca8c">&#9670;&nbsp;</a></span>remove_node()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class RepresentMethod&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool <a class="el" href="classbn_1_1network.html">bn::network</a>&lt; RepresentMethod &gt;::remove_node </td>
          <td>(</td>
          <td class="paramtype">node_ptr const &amp;&#160;</td>
          <td class="paramname"><em>node</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Remove the argument node from network. </p>
<p>Strong guarantee: if an exception is thrown, there are no changes in the network.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">node</td><td>Target node. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>true if the node was successfully removed; otherwise false. </dd></dl>

</div>
</div>
<a id="a9ac727efbdd02af8baa146820a7ea9fa"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9ac727efbdd02af8baa146820a7ea9fa">&#9670;&nbsp;</a></span>source()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class RepresentMethod&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">node_ptr <a class="el" href="classbn_1_1network.html">bn::network</a>&lt; RepresentMethod &gt;::source </td>
          <td>(</td>
          <td class="paramtype">arc_ptr const &amp;&#160;</td>
          <td class="paramname"><em>arc</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Obtain a source (parent) node of an arc. </p>
<p>No-throw guarantee: never throws exceptions.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">arc</td><td>an arc </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>a source node pointer if it is exist; otherwise false </dd></dl>

</div>
</div>
<a id="a3d49c65254a82ce519f71bef043ffd8e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3d49c65254a82ce519f71bef043ffd8e">&#9670;&nbsp;</a></span>target()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class RepresentMethod&gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">node_ptr <a class="el" href="classbn_1_1network.html">bn::network</a>&lt; RepresentMethod &gt;::target </td>
          <td>(</td>
          <td class="paramtype">arc_ptr const &amp;&#160;</td>
          <td class="paramname"><em>arc</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Obtain a target (child) node of an arc. </p>
<p>No-throw guarantee: never throws exceptions.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">arc</td><td>an arc. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>a target node pointer if it is exist; otherwise false. </dd></dl>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>bayesian/<a class="el" href="network_8hpp_source.html">network.hpp</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.14
</small></address>
</body>
</html>
